package com.e3.sysmg.config.model;

import com.e3.template.model.TGFTreeModel;

public class ParameterTreeModel extends TGFTreeModel implements ParameterTreeFields{

	private static final long serialVersionUID = 5864429395646757549L;
	
	private Integer code;
	
	private String name;
	
	public Integer getCode() {
		return getIntValue(ParameterTreeModel.CODE);
	}

	public void setCode(Integer code) {
		set(ParameterTreeModel.CODE,code);
	}

	public String getName() {
		return get(ParameterTreeModel.NAME);
	}

	public void setName(String name) {
		set(ParameterTreeModel.NAME,name);
	}

	public String[] getModelFields() {
		return ParameterTreeFields.fieldNames;
	}

	@Override
	public String getParentFiledName() {
		return "parent_id";
	}

}
